<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>资源信息</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <style>
        .work_title {
            margin: 15px 0px 15px 0px;
        }
        .sourse-bg {
            background: #F6FBFF;
            border-radius: 8px;
            padding: 10px;
            color: #344356;
            padding-left: 14px;
            font-size: 0.7rem;
        }

        .pdl0 {
            padding-left: 0;
        }

        .width50 {
            width: 50%;
            display: inline-block;
        }

        .width-flex {
            display: flex;
            position: relative;
        }
        .pb4 {
            padding-bottom: 4rem !important;
        }
        .posright {
            position: absolute;
            right: 0px;
            top: 0;
        }
        .divhidden {
            display:none;
        }

        .notodayList {
            font-size: 0.75rem;
            height: 2rem;
            line-height: 2rem;
            text-align: center;
        }
        .aui_formcontent {
            text-align:right;
        }
        .cover_bg {
            position: fixed;
            top: 0;
            bottom: 0;
            width: 100%;
            z-index: 999;
            background: rgba(0, 0, 0, 0.5);
        }
        .tag_content {
            position: fixed;
            z-index: 1000;
            height: 20rem;
            margin-top: -10rem;
            top: 50%;
            left: 10%;
            right: 10%;
            background: #fff;
            padding: 1rem 0.8rem 2rem 1rem;
            overflow: hidden;
        }
        .tag_box{
            height: 15rem;
            overflow-y: auto;
        }
        .tag_item {
            background: #daeff7;
            border: solid 1px #daeff7;
            border-radius: 5px;
            margin: 0 5px 5px 0;
            color: #808080;
            padding: 0 5px;
            display: inline-block;
            line-height: 25px;
            height: 25px;
        }

        .tag_item.isActive {
            color: #0079fe;
        }

        .aui_tag_bottombtn {
            position: absolute;
            bottom: 5px;
            left: 10px;
            right: 10px;
        }

        .tag_close {
            position: absolute;
            top: 5px;
            right: 5px;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div class="aui-content pb4">

            <div v-if="list.length>0" v-for="item in list" class="aui_list boxarea mb20">
                <div class="work_title">{{item.isDefault==1?'默认联系人':'其他住户'}}  <i v-on:click="edit(item)" class="icon iconfont icon-bianji ccc fr"></i></div>
                <div class="aui_formbox">
                    <div class="aui_formitem">
                        <div class="aui_formtitle">名称</div>
                        <div class="aui_formcontent aui-ellipsis-1 ">
                            {{item.name}}
                        </div>
                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">手机号码</div>
                        <div v-on:click="tel_phone(item.phone)" class="aui_formcontent">
                            {{item.phone}}
                        </div>
                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">住户身份</div>
                        <div class="aui_formcontent">
                            {{item.relateTypeDesc}}
                        </div>

                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">证件类型</div>
                        <div class="aui_formcontent">
                            {{item.idCardTypeDesc}}
                        </div>

                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">证件号码</div>
                        <div class="aui_formcontent">
                            {{item.idCardNo}}
                        </div>

                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">出生日期</div>
                        <div class="aui_formcontent">
                            {{item.birthday}}
                        </div>

                    </div>

                    <div class="aui_formitem">
                        <div class="aui_formtitle">工作单位</div>
                        <div class="aui_formcontent">
                            {{item.officeAddress}}
                        </div>

                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">联系地址</div>
                        <div class="aui_formcontent">
                            {{item.homeAddress}}
                        </div>
                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">住户标签</div>
                        <div class="aui_formcontent">
                            <label v-on:click="do_edit_tag(item)">
                                <span v-for="tagItem in item.tagList"
                                    class="tag_item isActive">{{tagItem.name}}</span>
                                <span>
                                    <i class="icon iconfont icon-add"></i>
                                </span>
                            </label>
                        </div>
                    </div>
                    <div class="aui_formitem">
                        <div class="aui_formtitle">备注</div>
                        <div class="aui_formcontent">
                            {{item.remark}}
                        </div>

                    </div>
                </div>
            </div>
            <div v-if="list.length>0" class=" notodayList ccc ">
                没有更多内容
            </div>
        </div>
        <div v-if="show_cover" class="cover_bg" v-on:click="do_close_tag()">
        </div>
        <div v-if="show_cover" class="tag_content">
            <div class="tag_close" tapmode v-on:click="do_close_tag()">
                <i class="icon iconfont icon-guanbi"></i>
            </div>
            <div class="tag_box">
                <label class="tag_item" v-on:click="do_select_tag(item)" v-bind:class="{'isActive':item.isSelected}"
                    v-for="item in tagList">{{item.name}}</label>
                <div v-on:click="saveTag()" class="aui_bottombtn aui_tag_bottombtn">保存</div>
            </div>
        </div>
        <div class="noinfo" id="noorder" v-if="list.length<=0" >
            <img src="../image/index/noinfomsg_icon.png" alt="" />
            <h5><br />暂无相关信息</h5>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-actionsheet.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="js/userinfo_detail.js"></script>

</html>
